package auctioncentral;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 * test class for the Event class.
 * @author harris, Andres Rosales (acr)
 * @version 13
 */
public class EventTest {

	/**
	 * the event object to use for testing.
	 */
	private Event my_event;
	
	/**
	 * the date object to use to test the date getter/setter.
	 */
	Date my_date;

	/**
	 * Initializes up all of the fields.
	 */
	@Before
	public void setup() {
		my_event = new Event("meep", "derp", "burp", "herp", new GregorianCalendar(7, 7, 7), 0, 0, "bleh");
	}
	
	/**
	 * tests to see if the approval status correctly defaults to be false.
	 */
	@Test
	public void testApprovalStatus() {
		assertTrue(my_event.toString().equals("meep\nderp\nburp\nherp\n" 
				   + new GregorianCalendar(7, 7, 7).toString() + "\n0\n0\nbleh\n"));
	}
}